#ifndef ANIMAL_H_
#define ANIMAL_H_

#include <iostream>
#include <string>

using namespace std;

class Animal
{
public:
	Animal();

public:
	void show();

public:
	string name;
	int countWing;
	int countFoot;
	int countTail;
};

Animal::Animal()
{
	name = "";
	countWing = 0;
	countFoot = 0;
	countTail = 0;
}

void Animal::show()
{
	if (!name.empty())
	{
		cout<<name<<" has ";

		if (countWing > 0)
		{
			cout<<countWing<<" wings";
		}

		if (countFoot > 0)
		{
			if (countWing > 0)
			{
				cout<<", ";
			}
			cout<<countFoot<<" feet";
		}

		if (countTail > 0)
		{
			if (countTail > 0)
			{
				cout<<", ";
			}
			cout<<countTail<<" tails";
		}

		cout<<"."<<endl;
	}
}

#endif // ANIMAL_H_
